import sys
import os
import subprocess

options = ' -s 50000 -n 10000 -i 0'

cmd = r'D:\bzr\SJCC_700\bin\rdg -p 8000' + options
print cmd
subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)


cmd = r'D:\bzr\SJCC_700\bin\rdg -p 8001' + options
print cmd
subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

cmd = r'D:\bzr\SJCC_700\bin\rdg -p 8002' + options
print cmd
subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

cmd = r'D:\bzr\SJCC_700\bin\rdg -p 8003' + options
print cmd
subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)